package bz.yfw.example.s3blazeds.part2.helper
{
	import bz.yfw.example.s3blazeds.part2.model.view.EmpViewModel;
	import bz.yfw.example.s3blazeds.part2.view.EmpEditCameraView;
	import bz.yfw.example.s3blazeds.part2.view.EmpEditConfirmView;
	
	import org.seasar.akabana.yui.framework.ns.viewpart;
	
	import spark.primitives.BitmapImage;
	
	use namespace viewpart;
	/**
	 * 写真撮影から確認画面へHelper
	 * @author tokufxug http://twitter.com/tokufxug
	 */ 
	public class EmpEditCameraConfirmHelper
	{
		public var view:EmpEditCameraView;
		
		viewpart var bmpimgShashin:BitmapImage;
		
		public function get empViewModel():EmpViewModel {
			return view.viewModel;
		}
		
		public function moveNext():void {
			var vm:EmpViewModel = empViewModel;
			vm.shashin = bmpimgShashin.bitmapData;
			view.navigator.pushView(EmpEditConfirmView, vm);
		}
	}
}